<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_merchants_to_member_order-update-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<input name="id" th:value="${shopMerchantsToMemberOrder.id}"
			type="hidden">
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商户ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="merchantsId"
					th:value="${shopMerchantsToMemberOrder.merchantsId}" name="merchantsId"
					placeholder="请输入商户ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="memberId"
					th:value="${shopMerchantsToMemberOrder.memberId}" name="memberId"
					placeholder="请输入用户ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户收货地址ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="memberAddressId"
					th:value="${shopMerchantsToMemberOrder.memberAddressId}" name="memberAddressId"
					placeholder="请输入用户收货地址ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品来源 0：供应商1：自营：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="goodsSource"
					th:value="${shopMerchantsToMemberOrder.goodsSource}" name="goodsSource"
					placeholder="请输入商品来源 0：供应商1：自营">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商Id：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="supplyId"
					th:value="${shopMerchantsToMemberOrder.supplyId}" name="supplyId"
					placeholder="请输入供应商Id">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商名称：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="supplyName"
					th:value="${shopMerchantsToMemberOrder.supplyName}" name="supplyName"
					placeholder="请输入供应商名称">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单总编号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderTotalCode"
					th:value="${shopMerchantsToMemberOrder.orderTotalCode}" name="orderTotalCode"
					placeholder="请输入订单总编号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品总价：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="goodsTotalPrice"
					th:value="${shopMerchantsToMemberOrder.goodsTotalPrice}" name="goodsTotalPrice"
					placeholder="请输入商品总价">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">运费：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="freight"
					th:value="${shopMerchantsToMemberOrder.freight}" name="freight"
					placeholder="请输入运费">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">优惠价：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="preferentialPrice"
					th:value="${shopMerchantsToMemberOrder.preferentialPrice}" name="preferentialPrice"
					placeholder="请输入优惠价">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户实付价格：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="memberRealPay"
					th:value="${shopMerchantsToMemberOrder.memberRealPay}" name="memberRealPay"
					placeholder="请输入用户实付价格">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">支付方式 0：微信1：支付宝：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="payType"
					th:value="${shopMerchantsToMemberOrder.payType}" name="payType"
					placeholder="请输入支付方式 0：微信1：支付宝">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">支付时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="payTime"
					th:value="${#dates.format(shopMerchantsToMemberOrder.payTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="payTime" placeholder="请输入支付时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">支付流水号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="payRunningCode"
					th:value="${shopMerchantsToMemberOrder.payRunningCode}" name="payRunningCode"
					placeholder="请输入支付流水号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">支付状态 10待支付,20 支付完成,30支付失败：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="payState"
					th:value="${shopMerchantsToMemberOrder.payState}" name="payState"
					placeholder="请输入支付状态 10待支付,20 支付完成,30支付失败">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="refundState"
					th:value="${shopMerchantsToMemberOrder.refundState}" name="refundState"
					placeholder="请输入退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单状态 10.待支付 20.待发货 30.已发货 40.待评价 50.已完成60.已取消70无效订单：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderState"
					th:value="${shopMerchantsToMemberOrder.orderState}" name="orderState"
					placeholder="请输入订单状态 10.待支付 20.待发货 30.已发货 40.待评价 50.已完成60.已取消70无效订单">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">取消原因：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="cancelWhy"
					th:value="${shopMerchantsToMemberOrder.cancelWhy}" name="cancelWhy"
					placeholder="请输入取消原因">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">确认收货时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="sureGoodsTime"
					th:value="${#dates.format(shopMerchantsToMemberOrder.sureGoodsTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="sureGoodsTime" placeholder="请输入确认收货时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">平台抽成：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="platformProportion"
					th:value="${shopMerchantsToMemberOrder.platformProportion}" name="platformProportion"
					placeholder="请输入平台抽成">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">供应商抽成：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="supplyProportion"
					th:value="${shopMerchantsToMemberOrder.supplyProportion}" name="supplyProportion"
					placeholder="请输入供应商抽成">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="createTime"
					th:value="${#dates.format(shopMerchantsToMemberOrder.createTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="createTime" placeholder="请输入添加时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">修改时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="updateTime"
					th:value="${#dates.format(shopMerchantsToMemberOrder.updateTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="updateTime" placeholder="请输入修改时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="deleteFlag"
					th:value="${shopMerchantsToMemberOrder.deleteFlag}" name="deleteFlag"
					placeholder="请输入">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_merchants_to_member_order-update">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
             			laydate.render({
				elem : '#payTime',
				type : 'datetime'
			});
      			laydate.render({
				elem : '#sureGoodsTime',
				type : 'datetime'
			});
   			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
  
			//监听提交
			form.on('submit(shop_merchants_to_member_order-update)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/merchants_to_member_order/update", data.field);
				return false;
			});
		});
	</script>
</body>
</html>